
package cn.com.czpb.client.net;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class HeaderParamsInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain)
            throws IOException {
        Request request = chain.request();
        request = request
                .newBuilder()
                .addHeader("Content-Type", "application/json;charset=utf-8")
                .build();
        Response response = chain.proceed(request);
        return response;
    }
}
